package com.ruoyi.ordersItem.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单明细对象 orders_item
 * 
 * @author ruoyi
 * @date 2025-01-22
 */
public class OrdersItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 图书ID */
    @Excel(name = "图书ID")
    private Long bookId;

    /** 图书名称 */
    @Excel(name = "图书名称")
    private String bookName;

    /** 图书封面 */
    @Excel(name = "图书封面")
    private String bookCover;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 借书订单ID */
    @Excel(name = "借书订单ID")
    private Long orderId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }
    public void setBookCover(String bookCover) 
    {
        this.bookCover = bookCover;
    }

    public String getBookCover() 
    {
        return bookCover;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("bookName", getBookName())
            .append("bookCover", getBookCover())
            .append("num", getNum())
            .append("orderId", getOrderId())
            .toString();
    }
}
